home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / COM / World Wide Web Weaver.sit / World Wide Web Weaver / World Wide Web Weaver 1.1.1 д / Extras / MacWebLint 1.011 / MacWebLint.rc < prev    next >
Text File  |  1995-07-27  |  12KB  |  270 lines

  1. #
  2. # sample configuration file for weblint
  3. # distributed as part of weblint 1.011
  4. #
  5. # the settings in this file reflect the built-in defaults
  6. #
  7.  
  8. #========================================================================
  9. #    Weblint Variables
  10. #========================================================================
  11.  
  12. #
  13. # message-style: style of warning message to generate
  14. #    lint    generate warnings similar to traditional lint:
  15. #            file(line #): warning
  16. #        this is the default
  17. #    short    don't include the filename in the warning message:
  18. #            line #: warning
  19. #    terse    a style which is easy for another program to parse:
  20. #            file:line #:warning-identifier
  21.  
  22. set message-style = lint
  23.  
  24. #
  25. # url-get: a program which can be used to retrieve a URL
  26. #
  27.  
  28. set url-get = lynx -source
  29.  
  30.  
  31. #========================================================================
  32. #    Extensions
  33. #========================================================================
  34.  
  35. #------------------------------------------------------------------------
  36. # Allow netscape HTML extensions, such as CENTER and FONT
  37. #------------------------------------------------------------------------
  38. # uncomment following line to enable the netscape extensions
  39. # extension netscape
  40.  
  41.  
  42. #========================================================================
  43. #    Weblint Warnings
  44. #========================================================================
  45.  
  46. #------------------------------------------------------------------------
  47. # By default, when recursing in a directory, weblint will check files
  48. # which are symlinks.  Uncomment the following line if you want weblint
  49. # to skip symlinks.  This is equivalent to the -l command-line switch
  50. #------------------------------------------------------------------------
  51. # ignore symlinks
  52.  
  53. #------------------------------------------------------------------------
  54. # There are two checks for the case of element tags:
  55. #    upper-case    all tags should be in upper case
  56. #    lower-case    all tags should be in lower case
  57. # If both are disabled, then case is ignored
  58. #------------------------------------------------------------------------
  59. disable upper-case lower-case
  60.  
  61. #------------------------------------------------------------------------
  62. # Bad style to use `here' as anchor text
  63. #------------------------------------------------------------------------
  64. enable here-anchor
  65.  
  66. #------------------------------------------------------------------------
  67. # Flag any elements which are not recognized.  This will catch mis-typed
  68. # elements (e.g. <TOTLE>, or <¥BODY>).
  69. #------------------------------------------------------------------------
  70. enable unknown-element
  71.  
  72. #------------------------------------------------------------------------
  73. # check element attributes to see if they are legal
  74. #------------------------------------------------------------------------
  75. enable unknown-attribute
  76.  
  77. #------------------------------------------------------------------------
  78. # flag if no HEAD element in page
  79. #------------------------------------------------------------------------
  80. enable require-head
  81.  
  82. #------------------------------------------------------------------------
  83. # Flag elements which should only appear once on a page (eg TITLE)
  84. #------------------------------------------------------------------------
  85. enable once-only
  86.  
  87. #------------------------------------------------------------------------
  88. # Flag case where page has BODY element, but no HEAD defined
  89. #------------------------------------------------------------------------
  90. enable body-no-head
  91.  
  92. #------------------------------------------------------------------------
  93. # If you want outer element to be <HTML>
  94. #------------------------------------------------------------------------
  95. enable html-outer
  96.  
  97. #------------------------------------------------------------------------
  98. # Flag elements which are only allowed to appear in HEAD element
  99. #------------------------------------------------------------------------
  100. enable head-element
  101.  
  102. #------------------------------------------------------------------------
  103. # Flag elements which aren't allowed to appear in HEAD element
  104. #------------------------------------------------------------------------
  105. enable non-head-element
  106.  
  107. #------------------------------------------------------------------------
  108. # Flag obsolete elements, such as XMP and LISTING
  109. #------------------------------------------------------------------------
  110. enable obsolete
  111.  
  112. #------------------------------------------------------------------------
  113. # Flag mis-matched begin and end tags;  for example:
  114. #    <H1> ... </H2>
  115. #------------------------------------------------------------------------
  116. enable mis-match
  117.  
  118. #------------------------------------------------------------------------
  119. # Flag any IMG elements which don't have ALT text defined.
  120. #------------------------------------------------------------------------
  121. enable img-alt
  122.  
  123. #------------------------------------------------------------------------
  124. # Flag illegally nested elements (such as anchors).
  125. #------------------------------------------------------------------------
  126. enable nested-element
  127.  
  128. #------------------------------------------------------------------------
  129. # Check for those elements which have required context.
  130. # For example, the <CAPTION> element can only appear in <FIG> or <TABLE>
  131. #------------------------------------------------------------------------
  132. enable required-context
  133.  
  134. #------------------------------------------------------------------------
  135. # Check for mailto: LINK in header;  for example:
  136. #    <LINK REV=MADE HREF="mailto:neilb@khoral.com">
  137. # This lets at least lynx users comment on a page.
  138. #------------------------------------------------------------------------
  139. disable mailto-link
  140.  
  141. #------------------------------------------------------------------------
  142. # Flag overlapped elements.  For example:
  143. #    <A HREF="..."> <B> text </A> </B>
  144. #------------------------------------------------------------------------
  145. enable element-overlap
  146.  
  147. #------------------------------------------------------------------------
  148. # Generate a warning if closing tag is not seen for elements where
  149. # it is expected.  A common case is <A NAME="..."> ... </A>.
  150. #------------------------------------------------------------------------
  151. enable unclosed-element
  152.  
  153. #------------------------------------------------------------------------
  154. # Generate a warning if markup appears inside a comment.  This can
  155. # confuse quite a few browsers, so it's not a good idea to do it.
  156. #------------------------------------------------------------------------
  157. enable markup-in-comment
  158.  
  159. #------------------------------------------------------------------------
  160. # You are not allowed to have any whitespace between the opening
  161. # < and element name.
  162. #------------------------------------------------------------------------
  163. enable leading-whitespace
  164.  
  165. #------------------------------------------------------------------------
  166. # Flag potentially unclosed tags:
  167. #    < ... < ... >
  168. #------------------------------------------------------------------------
  169. enable unexpected-open
  170.  
  171. #------------------------------------------------------------------------
  172. # Elements which do not have any required attributes, but for which at
  173. # least one attribute is expected.  Anchors, for example.
  174. #------------------------------------------------------------------------
  175. enable expected-attribute
  176.  
  177. #------------------------------------------------------------------------
  178. # Required element attributes.  Eg IMG tag must have SRC attribute.
  179. #------------------------------------------------------------------------
  180. enable required-attribute
  181.  
  182. #------------------------------------------------------------------------
  183. # Currently just checks local links, to see if target file exists.
  184. # disabled at the moment, since it generates bogus warnings if the file
  185. # path included directories.
  186. #------------------------------------------------------------------------
  187. disable bad-link
  188.  
  189. #------------------------------------------------------------------------
  190. # Check for headings which are more than 1 level deeper than previous.
  191. # Example: <H1> followed by <H3>
  192. #------------------------------------------------------------------------
  193. enable heading-order
  194.  
  195. #------------------------------------------------------------------------
  196. # Check for odd number of double quotes in tag, to catch things like:
  197. #        <A HREF="url >
  198. #------------------------------------------------------------------------
  199. enable odd-quotes
  200.  
  201. #------------------------------------------------------------------------
  202. # Warn about closing tag for elements which don't take a closing tag.
  203. # For example: <IMG SRC="foo.gif" ALT="alt text"></IMG>
  204. #------------------------------------------------------------------------
  205. enable illegal-closing
  206.  
  207. #------------------------------------------------------------------------
  208. # Warn about unclosed comments.  For example:
  209. #    <!-- this comment is not correctly closed >
  210. # Legal SGML comments are:
  211. #    <!-- ... blah blah ... -->
  212. #------------------------------------------------------------------------
  213. enable unclosed-comment
  214.  
  215. #------------------------------------------------------------------------
  216. # Warning for use of physical font markup, rather than logical
  217. # For example:
  218. #    <B> where you should use <STRONG>
  219. #    <I> where you should use <EM>
  220. #    <TT> where you should use <CODE>, <KBD>, <VAR>, or <SAMP>
  221. #------------------------------------------------------------------------
  222. disable physical-font
  223.  
  224. #------------------------------------------------------------------------
  225. # Warning for repeated attributes within the same tag.  For example:
  226. #    <IMG SRC="foo.gif" SRC="bar.gif">
  227. #    <A NAME="fred" NAME="bloggs">
  228. #------------------------------------------------------------------------
  229. enable repeated-attribute
  230.  
  231. #------------------------------------------------------------------------
  232. # Warn against use of ' as a delimiter for attribute values.  E.g.:
  233. #    <A HREF='http://www.khoral.com/'>KRI</A>
  234. #------------------------------------------------------------------------
  235. enable attribute-delimiter
  236.  
  237. #------------------------------------------------------------------------
  238. # Warn against use of netscape-specific attributes for non netscape-specific
  239. # elements.  For example:
  240. #    <BODY BGCOLOR="#fefefe">
  241. #------------------------------------------------------------------------
  242. enable netscape-attribute
  243.  
  244. #------------------------------------------------------------------------
  245. # Warn about attributes on a closing tag of container element.  E.g.:
  246. #    <A HREF="foobar.html">click here!</A NAME="foobar">
  247. #------------------------------------------------------------------------
  248. enable closing-attribute
  249.  
  250. #------------------------------------------------------------------------
  251. # When recursing in a directory, check whether there is a directory
  252. # index file.  See also the variable `directory-index', which specifies
  253. # the name of index file to look for.
  254. #------------------------------------------------------------------------
  255. enable directory-index
  256.  
  257. #------------------------------------------------------------------------
  258. # Warn about empty container elements.  For example:
  259. #    <TITLE></TITLE>
  260. #------------------------------------------------------------------------
  261. enable empty-container
  262.  
  263. #------------------------------------------------------------------------
  264. # Warn about situations where one element is expected to immediately
  265. # follow another, with no tags or text between. For example:
  266. #    1) LH should be the first thing in a UL, if it appears at all
  267. #    2) should be nothing between </HEAD> and <BODY>
  268. #------------------------------------------------------------------------
  269. enable must-follow
  270.